package main

import (
	"fmt"
	"runtime"
)

func main() {

	go func() {
		for {
			fmt.Println("go 协程")
		}
	}()

	for {
		//让出CPU的执行片，这边的打印就不会做了
		runtime.Gosched()
		fmt.Println("hello go")
	}

}
